-- GENERATED SPELL FOR [Enslaved Fire Elemental] --


function spell0_33838(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(38064,pUnit)
pUnit:RegisterEvent('Sorts_33838', 6341, 1)
end

function spell1_33838(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(63778,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33838', 0, 1)
end

function Sorts_33838(pUnit, Event)
local choix_sorts_33838 = math.random(0, 1)
if choix_sorts_33838 == 0 then
pUnit:RegisterEvent('spell0_33838', 1, 1)
end
if choix_sorts_33838 == 1 then
pUnit:RegisterEvent('spell1_33838', 1, 1)
end
end

function mob33838_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33838', math.random(1500, 3000), 1)
end

function mob33838_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33838_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33838_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33838, 1, 'mob33838_Action')
RegisterUnitEvent(33838, 2, 'mob33838_Leave')
RegisterUnitEvent(33838, 3, 'mob33838_Kill')
RegisterUnitEvent(33838, 4, 'mob33838_Die')
